package com.zhh.pay.task;

import com.zhh.pay.service.KuaiQianService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component("payTaskManager")
public class PayTaskManager {

    @Resource
    private KuaiQianService kuaiQianService;

    //补单接口
    @Scheduled(cron = "0 1 * * * ?")
    public void invokeKuaiQianQuery(){
        kuaiQianService.handleQueryOrder();

    }
}
